<?php

namespace App\Model;

class PriceOrdersModel extends BaseModel
{
    protected $table = 'price_orders';
    protected $primaryKey = 'pay_id';
    protected $fillable = [
        'user_id',
        'price',
        'shop_id',
        'status',
        'order_code',
        'pay_type'
    ];

    public function shopInfo(){
        return $this->hasOne(BusinessModel::class,'businesses_id','shop_id');
    }

    public function userInfo(){
        return $this->hasOne(UsersModel::class,'user_id','user_id');
    }
}
